export const users = [
  {"columnComment":"主键","columnName":"id","columnType":"varchar(64)","isPrimary":true,"isAutoIncrement":false,"isNonNull":true,"columnDefault":null},
  {"columnComment":"账号","columnName":"username","columnType":"varchar(64)","isPrimary":false,"isAutoIncrement":false,"isNonNull":true,"columnDefault":null},
  {"columnComment":"密码","columnName":"password","columnType":"varchar(256)","isPrimary":false,"isAutoIncrement":false,"isNonNull":true,"columnDefault":null},
  {"columnComment":"姓名","columnName":"name","columnType":"varchar(64)","isPrimary":false,"isAutoIncrement":false,"isNonNull":false,"columnDefault":null},
  {"columnComment":"手机号","columnName":"phone","columnType":"varchar(64)","isPrimary":null,"isAutoIncrement":false,"isNonNull":false,"columnDefault":null},
  {"columnComment":"邮箱","columnName":"email","columnType":"varchar(64)","isPrimary":null,"isAutoIncrement":false,"isNonNull":false,"columnDefault":null},
  {"columnComment":"登录错误次数","columnName":"err_count","columnType":"int","isPrimary":false,"isAutoIncrement":false,"isNonNull":false,"columnDefault":null},
  {"columnComment":"身价资产(元)","columnName":"personal_value","columnType":"decimal(18,2)","isPrimary":false,"isAutoIncrement":false,"isNonNull":false,"columnDefault":null},
  {"columnComment":"状态(0-正常 1-停用)","columnName":"status","columnType":"varchar(1)","isPrimary":false,"isAutoIncrement":false,"isNonNull":true,"columnDefault":"'0'"},
  {"columnComment":"创建人","columnName":"create_by","columnType":"varchar(64)","isPrimary":false,"isAutoIncrement":false,"isNonNull":false,"columnDefault":null},
  {"columnComment":"创建时间","columnName":"create_at","columnType":"timestamp","isPrimary":false,"isAutoIncrement":false,"isNonNull":false,"columnDefault":null},
  {"columnComment":"修改人","columnName":"update_by","columnType":"varchar(64)","isPrimary":false,"isAutoIncrement":false,"isNonNull":false,"columnDefault":null},
  {"columnComment":"修改时间","columnName":"update_at","columnType":"timestamp","isPrimary":false,"isAutoIncrement":false,"isNonNull":false,"columnDefault":null},
  {"columnComment":"删除标志(0-未删除 1-已删除)","columnName":"delete_flag","columnType":"varchar(1)","isPrimary":false,"isAutoIncrement":false,"isNonNull":true,"columnDefault":"'0'"}
]

export const defaultSample = `
// 模板引擎: art-template
// 内置函数: 
//    camel 驼峰, snake 下划线, pascal 大驼峰（帕斯卡）, typeMapping(列类型, 语言)
//    log   终端, dayjs 日期处理, _ lodash工具函数
const tableComment = '用户表'
const tableName    = 'sys_user'
const columns = [ {
        "columnComment": "主键",
        "columnName": "id",
        "columnType": "varchar(64)",
        "isPrimary": true,
        "isAutoIncrement": false,
        "isNonNull": true,
        "columnDefault": null
    },
    ...
]
`.trim()

export const defaultData = {
  tableComment: '用户表',
  tableName: 'sys_user',
  columns: [
    {
      "columnComment": "主键",
      "columnName": "id",
      "columnType": "varchar(64)",
      "isPrimary": true,
      "isAutoIncrement": false,
      "isNonNull": true,
      "columnDefault": null
    },
    {
      "columnComment": "账号",
      "columnName": "username",
      "columnType": "varchar(64)",
      "isPrimary": false,
      "isAutoIncrement": false,
      "isNonNull": true,
      "columnDefault": null
    },
    {
      "columnComment": "密码",
      "columnName": "password",
      "columnType": "varchar(256)",
      "isPrimary": false,
      "isAutoIncrement": false,
      "isNonNull": true,
      "columnDefault": null
    },
    {
      "columnComment": "姓名",
      "columnName": "name",
      "columnType": "varchar(64)",
      "isPrimary": false,
      "isAutoIncrement": false,
      "isNonNull": false,
      "columnDefault": null
    },
    {
      "columnComment": "手机号",
      "columnName": "phone",
      "columnType": "varchar(64)",
      "isPrimary": null,
      "isAutoIncrement": false,
      "isNonNull": false,
      "columnDefault": null
    },
    {
      "columnComment": "邮箱",
      "columnName": "email",
      "columnType": "varchar(64)",
      "isPrimary": null,
      "isAutoIncrement": false,
      "isNonNull": false,
      "columnDefault": null
    },
    {
      "columnComment": "登录错误次数",
      "columnName": "err_count",
      "columnType": "int",
      "isPrimary": false,
      "isAutoIncrement": false,
      "isNonNull": false,
      "columnDefault": null
    },
    {
      "columnComment": "身价资产(元)",
      "columnName": "personal_value",
      "columnType": "decimal(18,2)",
      "isPrimary": false,
      "isAutoIncrement": false,
      "isNonNull": false,
      "columnDefault": null
    },
    {
      "columnComment": "状态(0-正常 1-停用)",
      "columnName": "status",
      "columnType": "varchar(1)",
      "isPrimary": false,
      "isAutoIncrement": false,
      "isNonNull": true,
      "columnDefault": "'0'"
    },
    {
      "columnComment": "创建人",
      "columnName": "create_by",
      "columnType": "varchar(64)",
      "isPrimary": false,
      "isAutoIncrement": false,
      "isNonNull": false,
      "columnDefault": null
    },
    {
      "columnComment": "创建时间",
      "columnName": "create_at",
      "columnType": "timestamp",
      "isPrimary": false,
      "isAutoIncrement": false,
      "isNonNull": false,
      "columnDefault": null
    },
    {
      "columnComment": "修改人",
      "columnName": "update_by",
      "columnType": "varchar(64)",
      "isPrimary": false,
      "isAutoIncrement": false,
      "isNonNull": false,
      "columnDefault": null
    },
    {
      "columnComment": "修改时间",
      "columnName": "update_at",
      "columnType": "timestamp",
      "isPrimary": false,
      "isAutoIncrement": false,
      "isNonNull": false,
      "columnDefault": null
    },
    {
      "columnComment": "删除标志(0-未删除 1-已删除)",
      "columnName": "delete_flag",
      "columnType": "varchar(1)",
      "isPrimary": false,
      "isAutoIncrement": false,
      "isNonNull": true,
      "columnDefault": "'0'"
    }
  ],
}